package com.newworld.dmsapp2.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.litepal.crud.DataSupport;

@SuppressWarnings("serial")
public class Task extends DataSupport implements Serializable {
	// 本地id
	private long id;
	// 任务ID
	private String repairId;
	// 任务状态
	private String statusType_typeCode;

	// 房屋id
	private String house_id;
	// 房间号
	private String houseName = "";
	// 单元号
	private String unitName = "";
	// 楼栋号
	private String buildingName = "";
	// 期数
	private String phaseName = "";
	// 项目名称
	private String projectName = "";
	// 完整名称
	private String houseAllName = "";
	private String houseFullName = "";
	public String getHouseFullName() {
		return houseFullName;
	}

	public void setHouseFullName(String houseFullName) {
		this.houseFullName = houseFullName;
	}

	// 公区详细区域
	private String areaDetail;
	// 区域类型
	private String areaTypeCode;
	// 区域名称
	private String areaname;
	private String house_houseType_typeCode;// 房屋类型 areaType_typeCode

	private User user;
	// 提单人的id
	//private String reporter_id;
	
	//private String reporter_userName;
	
	// 维修人员id
	private String server_id;
	// 部门派单员ID
	private String departDispatcher_id;
	// 部门派单员姓名
	private String departDispatcher_realName;
	// 部门派单员电话
	private String departDispatcher_mobilePhone;
	// 回访人名字
	private String visitor_realName;
	// 回访终止者
	private String visitTerminator;
	// 提单人名字
	private String reporter_realName;
	
	/*private String reporterRealName;
	public String getReporterRealName() {
		return reporterRealName;
	}

	public void setReporterRealName(String reporterRealName) {
		this.reporterRealName = reporterRealName;
	}
*/
	// 分配人员用户名
	private String dispatcher_userName;
	// 分配人员姓名
	private String dispatcher_realName;
	// 维修人员名字(显示)
	private String server_realName;
	// 维修人员用户名
	private String server_userName;
	// 维修人员电话
	private String server_mobilePhone;
	// 回访人员名字
	private String visitor_userName;
	// 提单人员名字
	private String reporter_userName;

	// 申请时间
	private String reportTime;
	// 期望时间
	private String expectTime;
	// 受理时间
	private String acceptTime;
	// 派单时间
	private String dispatchTime;
	// 改派时间
	private String reDispatchTime;
	// 维修时间
	private String repairTime;
	// 完成时间
	private String finishTime;
	// 回访时间
	private String visitTime;
	// 评价时间
	private String evaluateTime;
	// 督办时间
	private String superviseTime;
	// 催单时间
	private String remindTime;
	// 主管申请改派时间
	private String applyRedispatchTime;
	// 服务人员申请改派
	private String severApplyRedispatchTime;
	// 部门主管申请改派
	private String departDispatcherApplyRedispatchTime;
	// 部门主管派单时间
	private String departDispatcherDispatchTime;
	// 部门主管改派时间
	private String departDispatcherRedispatchTime;
	// 回访终止时间
	private String visitTerminateTime;

	// 0为初始状态 1为显示红点状态 2为已经点击进入状态
	private int ischange = 0;
	// 插入数据库时间
	private long updatetime;
	// 本地保存 false为未保存 true为已保存
	private boolean isMoreflag;
	//停止维修 0为未停止 1为停止
	//private int stopflag = 0;
	private boolean stopflag;
	// 第一个时间提示字
	private String firstTimeStr;
	// 第二个时间提示字
	private String secondTimeStr;
	// 第一个时间
	private String firstTime;
	// 第二个时间
	private String secondTime;
	// 任务状态
	private String taskState;
	private String functionCode;
	// 节点
	private List<RepairNode> repairNodes = new ArrayList<RepairNode>();

	// 图片1
	private String problemImage1;
	// 图片2
	private String problemImage2;
	// 评价描述
	private String evaluateDescript;
	// 质量评价
	private String qualityStar;
	// 提单人电话
	private String reporter_phone;
	public String getReporter_phone() {
		return reporter_phone;
	}

	public void setReporter_phone(String reporter_phone) {
		this.reporter_phone = reporter_phone;
	}

	// 回访记录
	private String visitRecord;
	// 任务单号
	private String repairNum;
	// 修什么
	private String repairObject;
	// 维修图片1
	private String solvedImage1;
	// 维修图片2
	private String solvedImage2;
	// 提单问题描述
	private String problemDescript;
	// 区域（例：indoor）
	private String areaType_typeCode;
	// 维修录音
	private String solvedVoice;
	// 提单录音
	private String problemVoice;
	// 提单录音时间
	private String problemVoiceTime;
	// 维修录音时间
	private String solvedVoiceTime;
	// 维修描述
	private String solvedDescript;
	// 态度评价
	private String attitudeStar;
	// 总评价
	private String averageStar;

	private String visitTerminateNote;// 终止回访备注，预留字段
	private String visitTerminator_realName;
	private String visitTerminator_mobilePhone;

	public String getVisitTerminator_realName() {
		return visitTerminator_realName;
	}

	public void setVisitTerminator_realName(String visitTerminator_realName) {
		this.visitTerminator_realName = visitTerminator_realName;
	}

	public String getVisitTerminator_mobilePhone() {
		return visitTerminator_mobilePhone;
	}

	public void setVisitTerminator_mobilePhone(String visitTerminator_mobilePhone) {
		this.visitTerminator_mobilePhone = visitTerminator_mobilePhone;
	}

	public String getDepartDispatcher_mobilePhone() {
		return departDispatcher_mobilePhone;
	}

	public void setDepartDispatcher_mobilePhone(
			String departDispatcher_mobilePhone) {
		this.departDispatcher_mobilePhone = departDispatcher_mobilePhone;
	}

	public String getDepartDispatcher_id() {
		return departDispatcher_id;
	}

	public void setDepartDispatcher_id(String departDispatcher_id) {
		this.departDispatcher_id = departDispatcher_id;
	}

	public String getDepartDispatcher_realName() {
		return departDispatcher_realName;
	}

	public void setDepartDispatcher_realName(String departDispatcher_realName) {
		this.departDispatcher_realName = departDispatcher_realName;
	}

	public String getDepartDispatcherApplyRedispatchTime() {
		return departDispatcherApplyRedispatchTime;
	}

	public void setDepartDispatcherApplyRedispatchTime(
			String departDispatcherApplyRedispatchTime) {
		this.departDispatcherApplyRedispatchTime = departDispatcherApplyRedispatchTime;
	}

	public String getDepartDispatcherDispatchTime() {
		return departDispatcherDispatchTime;
	}

	public void setDepartDispatcherDispatchTime(
			String departDispatcherDispatchTime) {
		this.departDispatcherDispatchTime = departDispatcherDispatchTime;
	}

	public String getDepartDispatcherRedispatchTime() {
		return departDispatcherRedispatchTime;
	}

	public void setDepartDispatcherRedispatchTime(
			String departDispatcherRedispatchTime) {
		this.departDispatcherRedispatchTime = departDispatcherRedispatchTime;
	}

	public String getSeverApplyRedispatchTime() {
		return severApplyRedispatchTime;
	}

	public void setSeverApplyRedispatchTime(String severApplyRedispatchTime) {
		this.severApplyRedispatchTime = severApplyRedispatchTime;
	}

	/*public String getReporter_id() {
		return reporter_id;
	}

	public void setReporter_id(String reporter_id) {
		this.reporter_id = reporter_id;
	}*/

	public String getAreaTypeCode() {
		return areaTypeCode;
	}

	public void setAreaTypeCode(String areaTypeCode) {
		this.areaTypeCode = areaTypeCode;
	}

	public String getApplyRedispatchTime() {
		return applyRedispatchTime;
	}

	public void setApplyRedispatchTime(String applyRedispatchTime) {
		this.applyRedispatchTime = applyRedispatchTime;
	}

	public String getRemindTime() {
		return remindTime;
	}

	public void setRemindTime(String remindTime) {
		this.remindTime = remindTime;
	}

	public String getSuperviseTime() {
		return superviseTime;
	}

	public void setSuperviseTime(String superviseTime) {
		this.superviseTime = superviseTime;
	}

	public String getVisitTerminator() {
		return visitTerminator;
	}

	public void setVisitTerminator(String visitTerminator) {
		this.visitTerminator = visitTerminator;
	}

	public String getVisitTerminateTime() {
		return visitTerminateTime;
	}

	public void setVisitTerminateTime(String visitTerminateTime) {
		this.visitTerminateTime = visitTerminateTime;
	}

	public String getVisitTerminateNote() {
		return visitTerminateNote;
	}

	public void setVisitTerminateNote(String visitTerminateNote) {
		this.visitTerminateNote = visitTerminateNote;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getRepairId() {
		return repairId;
	}

	public void setRepairId(String repairId) {
		this.repairId = repairId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	/*
	 * public String getHouseNum() { return houseNum; }
	 * 
	 * public void setHouseNum(String houseNum) { this.houseNum = houseNum; }
	 */

	public String getAreaDetail() {
		return areaDetail;
	}

	public void setAreaDetail(String areaDetail) {
		this.areaDetail = areaDetail;
	}

	public String getUnitName() {
		return unitName;
	}

	public String getHouseName() {
		return houseName;
	}

	public void setHouseName(String houseName) {
		this.houseName = houseName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	public String getPhaseName() {
		return phaseName;
	}

	public void setPhaseName(String phaseName) {
		this.phaseName = phaseName;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getHouseAllName() {
		return houseAllName;
	}

	public void setHouseAllName(String houseAllName) {
		this.houseAllName = houseAllName;
	}

	public String getReportTime() {
		return reportTime;
	}

	public void setReportTime(String reportTime) {
		this.reportTime = reportTime;
	}

	public String getStatusType_typeCode() {
		return statusType_typeCode;
	}

	public void setStatusType_typeCode(String statusType_typeCode) {
		this.statusType_typeCode = statusType_typeCode;
	}

	public String getExpectTime() {
		return expectTime;
	}

	public void setExpectTime(String expectTime) {
		this.expectTime = expectTime;
	}

	public String getAcceptTime() {
		return acceptTime;
	}

	public void setAcceptTime(String acceptTime) {
		this.acceptTime = acceptTime;
	}

	public String getDispatchTime() {
		return dispatchTime;
	}

	public void setDispatchTime(String dispatchTime) {
		this.dispatchTime = dispatchTime;
	}

	public String getReDispatchTime() {
		return reDispatchTime;
	}

	public void setReDispatchTime(String reDispatchTime) {
		this.reDispatchTime = reDispatchTime;
	}

	public String getRepairTime() {
		return repairTime;
	}

	public void setRepairTime(String repairTime) {
		this.repairTime = repairTime;
	}

	public String getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(String finishTime) {
		this.finishTime = finishTime;
	}

	public String getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(String visitTime) {
		this.visitTime = visitTime;
	}

	public String getEvaluateTime() {
		return evaluateTime;
	}

	public void setEvaluateTime(String evaluateTime) {
		this.evaluateTime = evaluateTime;
	}

	public String getHouse_id() {
		return house_id;
	}

	public void setHouse_id(String house_id) {
		this.house_id = house_id;
	}

	public int getIschange() {
		return ischange;
	}

	public void setIschange(int ischange) {
		this.ischange = ischange;
	}

	public long getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(long updatetime) {
		this.updatetime = updatetime;
	}

	public String getFirstTimeStr() {
		return firstTimeStr;
	}

	public void setFirstTimeStr(String firstTimeStr) {
		this.firstTimeStr = firstTimeStr;
	}

	public String getSecondTimeStr() {
		return secondTimeStr;
	}

	public void setSecondTimeStr(String secondTimeStr) {
		this.secondTimeStr = secondTimeStr;
	}

	public String getFirstTime() {
		return firstTime;
	}

	public void setFirstTime(String firstTime) {
		this.firstTime = firstTime;
	}

	public String getSecondTime() {
		return secondTime;
	}

	public void setSecondTime(String secondTime) {
		this.secondTime = secondTime;
	}

	public String getTaskState() {
		return taskState;
	}

	public void setTaskState(String taskState) {
		this.taskState = taskState;
	}

	public String getProblemImage1() {
		return problemImage1;
	}

	public void setProblemImage1(String problemImage1) {
		this.problemImage1 = problemImage1;
	}

	public String getProblemImage2() {
		return problemImage2;
	}

	public void setProblemImage2(String problemImage2) {
		this.problemImage2 = problemImage2;
	}

	public String getEvaluateDescript() {
		return evaluateDescript;
	}

	public void setEvaluateDescript(String evaluateDescript) {
		this.evaluateDescript = evaluateDescript;
	}

	public String getQualityStar() {
		return qualityStar;
	}

	public void setQualityStar(String qualityStar) {
		this.qualityStar = qualityStar;
	}


	public String getReporter_realName() {
		return reporter_realName;
	}

	public void setReporter_realName(String reporter_realName) {
		this.reporter_realName = reporter_realName;
	}

	public String getDispatcher_userName() {
		return dispatcher_userName;
	}

	public void setDispatcher_userName(String dispatcher_userName) {
		this.dispatcher_userName = dispatcher_userName;
	}

	public String getServer_realName() {
		return server_realName;
	}

	public void setServer_realName(String server_realName) {
		this.server_realName = server_realName;
	}

	public String getVisitor_realName() {
		return visitor_realName;
	}

	public void setVisitor_realName(String visitor_realName) {
		this.visitor_realName = visitor_realName;
	}

	public String getVisitRecord() {
		return visitRecord;
	}

	public void setVisitRecord(String visitRecord) {
		this.visitRecord = visitRecord;
	}

	public String getRepairNum() {
		return repairNum;
	}

	public void setRepairNum(String repairNum) {
		this.repairNum = repairNum;
	}

	public String getRepairObject() {
		return repairObject;
	}

	public void setRepairObject(String repairObject) {
		this.repairObject = repairObject;
	}

	public String getServer_userName() {
		return server_userName;
	}

	public void setServer_userName(String server_userName) {
		this.server_userName = server_userName;
	}

	public String getSolvedImage1() {
		return solvedImage1;
	}

	public void setSolvedImage1(String solvedImage1) {
		this.solvedImage1 = solvedImage1;
	}

	public String getSolvedImage2() {
		return solvedImage2;
	}

	public void setSolvedImage2(String solvedImage2) {
		this.solvedImage2 = solvedImage2;
	}

	public String getProblemDescript() {
		return problemDescript;
	}

	public void setProblemDescript(String problemDescript) {
		this.problemDescript = problemDescript;
	}

	public String getAreaType_typeCode() {
		return areaType_typeCode;
	}

	public void setAreaType_typeCode(String areaType_typeCode) {
		this.areaType_typeCode = areaType_typeCode;
	}

	public String getVisitor_userName() {
		return visitor_userName;
	}

	public void setVisitor_userName(String visitor_userName) {
		this.visitor_userName = visitor_userName;
	}

	public String getReporter_userName() {
		return reporter_userName;
	}

	public void setReporter_userName(String reporter_userName) {
		this.reporter_userName = reporter_userName;
	}

	public String getSolvedVoice() {
		return solvedVoice;
	}

	public void setSolvedVoice(String solvedVoice) {
		this.solvedVoice = solvedVoice;
	}

	public String getProblemVoice() {
		return problemVoice;
	}

	public void setProblemVoice(String problemVoice) {
		this.problemVoice = problemVoice;
	}

	public String getSolvedDescript() {
		return solvedDescript;
	}

	public void setSolvedDescript(String solvedDescript) {
		this.solvedDescript = solvedDescript;
	}

	public String getAttitudeStar() {
		return attitudeStar;
	}

	public void setAttitudeStar(String attitudeStar) {
		this.attitudeStar = attitudeStar;
	}

	public String getAverageStar() {
		return averageStar;
	}

	public void setAverageStar(String averageStar) {
		this.averageStar = averageStar;
	}

	public String getServer_mobilePhone() {
		return server_mobilePhone;
	}

	public void setServer_mobilePhone(String server_mobilePhone) {
		this.server_mobilePhone = server_mobilePhone;
	}

	public List<RepairNode> getRepairNodes() {
		return repairNodes;
	}

	public void setRepairNodes(List<RepairNode> repairNodes) {
		this.repairNodes = repairNodes;
	}

	public String getAreaname() {
		return areaname;
	}

	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}


	public String getProblemVoiceTime() {
		return problemVoiceTime;
	}

	public void setProblemVoiceTime(String problemVoiceTime) {
		this.problemVoiceTime = problemVoiceTime;
	}

	public String getSolvedVoiceTime() {
		return solvedVoiceTime;
	}

	public void setSolvedVoiceTime(String solvedVoiceTime) {
		this.solvedVoiceTime = solvedVoiceTime;
	}

	public String getServer_id() {
		return server_id;
	}

	public void setServer_id(String server_id) {
		this.server_id = server_id;
	}

	public String getDispatcher_realName() {
		return dispatcher_realName;
	}

	public void setDispatcher_realName(String dispatcher_realName) {
		this.dispatcher_realName = dispatcher_realName;
	}

	public String getFunctionCode() {
		return functionCode;
	}

	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}

	public boolean isMoreflag() {
		return isMoreflag;
	}

	public boolean getMoreflag() {
		return isMoreflag;
	}

	public void setMoreflag(boolean isMoreflag) {
		this.isMoreflag = isMoreflag;
	}


	public boolean isStopflag() {
		return stopflag;
	}

	public void setStopflag(boolean stopflag) {
		this.stopflag = stopflag;
	}

	public String getHouse_houseType_typeCode() {
		return house_houseType_typeCode;
	}

	public void setHouse_houseType_typeCode(String house_houseType_typeCode) {
		this.house_houseType_typeCode = house_houseType_typeCode;
	}

	// 根据repairId获取任务
	public List<Task> getTasksForRepairId(String repairId) {
		return DataSupport.where("repairId = ?", repairId).find(Task.class);
	}

	public List<Task> getTasksForRepairId() {
		return DataSupport.where("repairId = ?", repairId).find(Task.class);
	}

}
